/*
 * @Author: Lin Hongwei
 * @Date: 2022-10-08 22:10:20
 * @LastEditTime: 2022-10-08 22:12:30
 * @LastEditors: Lin Hongwei
 * @email: 1365755396@qq.com
 * @CSDN: https://blog.csdn.net/weixin_45429409
 * @Description: task类型查询
 */
import { useQuery } from "react-query";
import { useHttp } from ".";
import { TaskType } from "../types/task-type";

/**
 * @description: 任务类查询
 * @return {*}
 */
export const useQueryTaskType = () => {
  const client = useHttp();
  return useQuery<TaskType[]>(["taskType"], () => client("/taskType"));
};
